[id].vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation1></HomePageNavigation1>
  7. <!-- 列表页广告一 -->
  8. <HomeTopTen :imgurl="adList[0]" v-if="adList[0]"></HomeTopTen>
  9. <!-- 面包屑导航 -->
  10. <div class="breadcrumb">
  11. <div class="inner">
  12. <span class="location">当前位置:</span>
  13. <el-breadcrumb :separator-icon="ArrowRight">
  14. <el-breadcrumb-item>
  15. <NuxtLink to="/">首页</NuxtLink>
  16. </el-breadcrumb-item>
  17. <el-breadcrumb-item>本网招聘</el-breadcrumb-item>
  18. </el-breadcrumb>
  19. </div>
  20. </div>
  21. <!-- 资讯列表 -->
  22. <div class="newsList">
  23. <div class="inner">
  24. <div class="innerLeft">
  25. <div class="projectMoreBox">
  26. <div class="projectMoreTitle">社会保障在线网</div>
  27. <div class="projectMoreText">
  28. <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
  29. <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
  30. <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
  31. </div>
  32. </div>
  33. <div class="innerTitle">本网招聘</div>
  34. <ul class="list">
  35. <li v-for="(item, index) in newsList" :key="index">
  36. <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" :title="item.con_title">{{item.con_title}}</NuxtLink>
  37. <!-- <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" v-if="item.islink == 0">{{ item.list_title }}</NuxtLink> -->
  38. </li>
  39. </ul>
  40. <!-- 分页器 -->
  41. <!-- <div class="pagination">
  42. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  43. prev-text="上一页" next-text="下一页" @change="changePage" />
  44. </div> -->
  45. </div>
  46. <div class="innerRight">
  47. <div class="rightMenuTitle">导航列表</div>
  48. <ul>
  49. <li v-for="(item, index) in bottomMenu" :key="index">
  50. <NuxtLink :to="`/speciaArticle/${item.id}`" v-if="item.id == pageId && item.id != 7" class="active" :title="item.name">{{ item.name }}</NuxtLink>
  51. <NuxtLink :to="`/speciaArticle/${item.id}`" v-else-if="item.id != pageId && item.id != 7" :title="item.name">{{ item.name }}</NuxtLink>
  52. <NuxtLink :to="`/specialList/${item.id}`" v-if="item.id == 7 && pageId == 7 && routeHref == '/specialList/7'" class="active" :title="item.name">{{item.name}}</NuxtLink>
  53. <NuxtLink :to="`/specialList/${item.id}`" v-else-if="item.id == 7" :title="item.name">{{item.name}}</NuxtLink>
  54. </li>
  55. </ul>
  56. </div>
  57. <div style="clear: both;"></div>
  58. </div>
  59. </div>
  60. <!-- 列表页广告二 -->
  61. <HomeTopTen :imgurl="adList[1]" v-if="adList[1]"></HomeTopTen>
  62. <!-- 页面底部 -->
  63. <HomeFoot1></HomeFoot1>
  64. </div>
  65. </template>
  66. <script setup>
  67. //1.页面依赖 start ---------------------------------------->
  68. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  69. import { ArrowRight } from '@element-plus/icons-vue'
  70. //获得跳转过来的id
  71. const route = useRoute();
  72. const pageId = route.params.id;
  73. const routeHref = route.href;
  74. //1.页面依赖 end ---------------------------------------->
  75. //2.页面数据 start ---------------------------------------->
  76. let adList = ref([]);
  77. async function getAdData(){
  78. const adData = await requestDataPromise('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'PAGE'}});
  79. adList.value = adData.data;
  80. }
  81. getAdData();
  82. //左侧导航
  83. const bottomMenu = ref([]);
  84. async function getPageMenu() {
  85. const mkdata = await requestDataPromise('/web/getWebsiteFooterCategory', {
  86. method: 'GET',
  87. query: {},
  88. });
  89. bottomMenu.value = mkdata.data;
  90. }
  91. getPageMenu();
  92. //列表
  93. const newsList = ref([]);
  94. let newslists = async () => {
  95. const listData = await requestDataPromise('/web/getWebsiteFooterCategoryList', {
  96. method: 'GET',
  97. query: {
  98. 'fcat_id':pageId,
  99. },
  100. });
  101. newsList.value = listData.data;
  102. }
  103. //获得列表
  104. newslists();
  105. //分页
  106. let changePage = (value) => {
  107. console.log("当前页码", value);
  108. page.value = value
  109. console.log(page.value);
  110. newslists()
  111. }
  112. //2.页面数据 end ---------------------------------------->
  113. //3 设置seo信息
  114. const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
  115. method: 'GET',
  116. query: {},
  117. });
  118. let seoTitle = setData.data.website_head.title;
  119. let seoDescription = setData.data.website_head.description;
  120. let seoKeywords = setData.data.website_head.keywords;
  121. useSeoMeta({
  122. title: seoTitle,
  123. meta: [
  124. { name: 'description', content: seoDescription },
  125. { name: 'keywords', content: seoKeywords }
  126. ]
  127. });
  128. //3.设置seo信息 end---------------------------------------->
  129. </script>
  130. <style lang="less" scoped>
  131. //导航条
  132. .breadcrumb {
  133. width: 100%;
  134. height: 22px;
  135. margin-bottom: 30px;
  136. font-family: Microsoft YaHei, Microsoft YaHei;
  137. font-weight: 400;
  138. font-size: 20px;
  139. color: #666666;
  140. line-height: 23px;
  141. text-align: left;
  142. font-style: normal;
  143. text-transform: none;
  144. :deep(.el-breadcrumb) {
  145. display: inline-block;
  146. vertical-align: -4px;
  147. }
  148. :deep(.el-breadcrumb__inner a),
  149. :deep(.el-breadcrumb__inner.is-link) {
  150. color: #666666;
  151. font-weight: 400;
  152. text-decoration: none;
  153. transition: var(--el-transition-color);
  154. }
  155. span {
  156. font-family: Microsoft YaHei, Microsoft YaHei;
  157. font-weight: 400;
  158. font-size: 20px;
  159. color: #666666;
  160. line-height: 23px;
  161. text-align: left;
  162. font-style: normal;
  163. text-transform: none;
  164. }
  165. span:hover {
  166. color: #666666;
  167. }
  168. .location {
  169. margin-right: 20px;
  170. width: 100px;
  171. height: 22px;
  172. font-family: Microsoft YaHei, Microsoft YaHei;
  173. font-weight: 400;
  174. font-size: 20px;
  175. color: #666666;
  176. line-height: 23px;
  177. text-align: left;
  178. font-style: normal;
  179. text-transform: none;
  180. }
  181. }
  182. // 资讯列表
  183. .newsList {
  184. width: 100%;
  185. margin-bottom: 70px;
  186. .inner {
  187. width: 1200px;
  188. height: 1300px;
  189. .innerLeft {
  190. height: 65px;
  191. line-height: 65px;
  192. font-size: 22px;
  193. color: #028E21;
  194. font-weight: bold;
  195. }
  196. .innerTitle {
  197. font-size: 24px;
  198. }
  199. .innerLeft {
  200. float: right;
  201. >.list {
  202. height: 570px;
  203. margin-bottom: 70px;
  204. border-top: 1px solid #139602;
  205. >li {
  206. width: 790px;
  207. height: 60px;
  208. white-space: nowrap;
  209. overflow: hidden;
  210. text-overflow: ellipsis;
  211. line-height: 60px;
  212. //border-bottom: 1px solid #D9D9D9;
  213. >a {
  214. width: 360px;
  215. height: 26px;
  216. cursor: pointer;
  217. font-family: Microsoft YaHei, Microsoft YaHei;
  218. font-weight: 400;
  219. font-size: 20px;
  220. color: #333333;
  221. line-height: 26px;
  222. text-align: left;
  223. font-style: normal;
  224. text-transform: none;
  225. }
  226. }
  227. >li:hover>a {
  228. color: #139602;
  229. }
  230. >li:nth-child(1)::after,
  231. >li:nth-child(2)::after {
  232. content: "热";
  233. margin-left: 13px;
  234. background: #FF8A37;
  235. color: #fff;
  236. font-size: 14px;
  237. padding: 0px 2px;
  238. }
  239. >li:nth-child(5n) {
  240. border-bottom: 1px solid #D9D9D9;
  241. }
  242. }
  243. >.pagination {
  244. width: 800px;
  245. height: 34px;
  246. margin-left: 141px;
  247. display: flex;
  248. justify-content: center;
  249. margin: 0;
  250. // 鼠标移入后字体颜色
  251. .el-pagination::v-deep :hover {
  252. color: #139609;
  253. }
  254. .el-pagination.is-background::v-deep .btn-next,
  255. .el-pagination.is-background::v-deep .btn-prev {
  256. width: 70px;
  257. height: 34px;
  258. margin: 0px 10px;
  259. border-radius: 4px;
  260. }
  261. .el-pagination.is-background::v-deep .el-pager li {
  262. margin: 0px 10px;
  263. width: 38px;
  264. height: 34px;
  265. border-radius: 4px;
  266. }
  267. .el-pagination.is-background::v-deep .btn-next.is-active,
  268. .el-pagination.is-background::v-deep .btn-prev.is-active,
  269. .el-pagination.is-background::v-deep .el-pager li.is-active {
  270. background-color: #028e21;
  271. color: #fff;
  272. }
  273. }
  274. }
  275. .innerRight {
  276. width: 279px;
  277. .rightMenuTitle {
  278. width: 279px;
  279. height: 69px;
  280. font-size: 22px;
  281. font-weight: bold;
  282. line-height: 58px;
  283. text-align: center;
  284. color: #fff;
  285. background: url("../../public/special/projectMoreTitle.png") no-repeat;
  286. margin-bottom: 30px;
  287. }
  288. ul {
  289. li {
  290. a {
  291. border-left: 5px solid #028E21;
  292. margin-bottom: 15px;
  293. font-size: 22px;
  294. display: block;
  295. height: 61px;
  296. line-height: 61px;
  297. color: #333333;
  298. text-align: center;
  299. background: #FBFBFB;
  300. }
  301. }
  302. }
  303. .active {
  304. border-left: 0;
  305. border: 1px solid #028E21;
  306. background: #fff;
  307. }
  308. }
  309. }
  310. }
  311. //资讯推荐
  312. .zixuntuijian {
  313. width: 100%;
  314. height: 290px;
  315. margin-bottom: 70px;
  316. .innerLeft {
  317. // 左侧
  318. .zixunLeft {
  319. margin-right: 30px;
  320. }
  321. .zixunRight,
  322. .zixunLeft {
  323. float: left;
  324. width: 380px;
  325. height: 290px;
  326. // 标题部分
  327. >.title {
  328. width: 380px;
  329. }
  330. >.title>h3 {
  331. height: 36px;
  332. font-family: Source Han Sans, Source Han Sans;
  333. font-weight: bold;
  334. font-size: 24px;
  335. color: #000000;
  336. line-height: 28px;
  337. text-align: left;
  338. font-style: normal;
  339. text-transform: none;
  340. border-bottom: 1px solid #139602;
  341. }
  342. >.title>h3>span {
  343. float: right;
  344. width: 56px;
  345. height: 20px;
  346. line-height: 24px;
  347. font-weight: 400;
  348. font-size: 14px;
  349. color: #999999;
  350. font-style: normal;
  351. text-transform: none;
  352. }
  353. .photo_text {
  354. >li:first-child {
  355. width: 380px;
  356. height: 120px;
  357. margin-top: 20px;
  358. margin-bottom: 15px;
  359. position: relative;
  360. >img {
  361. float: left;
  362. width: 160px;
  363. height: 120px;
  364. }
  365. >div {
  366. float: left;
  367. width: 220px;
  368. height: 120px;
  369. padding-left: 15px;
  370. padding-top: 6px;
  371. box-sizing: border-box;
  372. background-color: #f6f6f6;
  373. >h5 {
  374. width: 200px;
  375. height: 54px;
  376. display: -webkit-box;
  377. -webkit-box-orient: vertical;
  378. -webkit-line-clamp: 2;
  379. overflow: hidden;
  380. text-overflow: ellipsis;
  381. word-break: break-all;
  382. font-family: Source Han Sans, Source Han Sans;
  383. font-weight: 500;
  384. font-size: 18px;
  385. color: #333333;
  386. line-height: 26px;
  387. text-align: left;
  388. font-style: normal;
  389. text-transform: none;
  390. }
  391. >p {
  392. width: 200px;
  393. height: 22px;
  394. line-height: 20px;
  395. position: absolute;
  396. bottom: 5px;
  397. right: 0;
  398. >span {
  399. display: inline-block;
  400. // width: 100px;
  401. height: 18px;
  402. font-family: Source Han Sans, Source Han Sans;
  403. font-weight: 400;
  404. font-size: 12px;
  405. color: #999999;
  406. text-align: left;
  407. line-height: 14px;
  408. font-style: normal;
  409. text-transform: none;
  410. }
  411. >span:last-child {
  412. // width: 90px;
  413. text-align: right;
  414. margin-left: 20px;
  415. }
  416. }
  417. }
  418. }
  419. >li {
  420. width: 380px;
  421. height: 25px;
  422. white-space: nowrap;
  423. overflow: hidden;
  424. text-overflow: ellipsis;
  425. font-family: PingFang SC, PingFang SC;
  426. font-weight: 500;
  427. font-size: 18px;
  428. color: #333333;
  429. line-height: 21px;
  430. text-align: left;
  431. font-style: normal;
  432. text-transform: none;
  433. margin-bottom: 10px;
  434. em {
  435. display: inline-block;
  436. width: 8px;
  437. height: 8px;
  438. border-radius: 8px;
  439. margin-right: 10px;
  440. background-color: #d9d9d9;
  441. }
  442. }
  443. >li:hover {
  444. color: #139602;
  445. }
  446. >li:hover em {
  447. background-color: #139602;
  448. }
  449. }
  450. }
  451. }
  452. .innerRight {
  453. width: 381px;
  454. height: 290px;
  455. background-color: #fbfbfb;
  456. >.title {
  457. width: 380px;
  458. height: 40px;
  459. line-height: 40px;
  460. border-top: 1px solid #139602;
  461. border-bottom: 1px solid #e7e7e7;
  462. >h4 {
  463. font-family: Microsoft YaHei, Microsoft YaHei;
  464. font-weight: 400;
  465. margin-left: 20px;
  466. font-size: 20px;
  467. color: #000000;
  468. text-align: left;
  469. font-style: normal;
  470. text-transform: none;
  471. >span {
  472. float: right;
  473. font-family: Microsoft YaHei, Microsoft YaHei;
  474. font-weight: 400;
  475. font-size: 14px;
  476. margin-right: 10px;
  477. color: #999999;
  478. text-align: left;
  479. font-style: normal;
  480. text-transform: none;
  481. }
  482. }
  483. }
  484. .rightList {
  485. height: 540px;
  486. margin-top: 20px;
  487. >li {
  488. height: 100px;
  489. margin-bottom: 10px;
  490. >img {
  491. width: 150px;
  492. height: 100px;
  493. }
  494. >p {
  495. width: 219px;
  496. height: 100px;
  497. padding-left: 12px;
  498. font-family: PingFang SC, PingFang SC;
  499. font-weight: 400;
  500. font-size: 16px;
  501. color: #333333;
  502. line-height: 22px;
  503. text-align: left;
  504. font-style: normal;
  505. text-transform: none;
  506. }
  507. >p:hover {
  508. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  509. }
  510. }
  511. }
  512. }
  513. }
  514. .projectMoreBox {
  515. margin: 0 auto;
  516. height: 540px;
  517. margin-top: 20px;
  518. background: url("../../public/special/projectMoreBg.png") no-repeat;
  519. margin-bottom: 40px;
  520. .projectMoreTitle {
  521. color: #028E21;
  522. padding-top: 20px;
  523. font-size: 26px;
  524. padding-left: 204px;
  525. }
  526. .projectMoreText {
  527. padding: 40px;
  528. font-size: 20px;
  529. color: #333333;
  530. text-indent: 2em;
  531. line-height: 36px;
  532. }
  533. }
  534. </style>